package com.模板模式.dao;

import com.google.common.collect.Lists;
import com.模板模式.pojo.Goods;
import com.模板模式.pojo.Order;
import com.模板模式.pojo.OrderItem;
import com.模板模式.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.math.BigDecimal;
import java.util.List;


public class ExportExcelDao {


    //从数据库中获取用户
    public static List<User> userList= Lists.newArrayList(
            new User("张三",1,"11111111111111111"),
            new User("李四",2,"22222222222222222"),
            new User("王五",3,"33333333333333333"),
            new User("赵六",4,"44444444444444444")
    );

    public static List<Goods> goodsList=Lists.newArrayList(
            new Goods(1L,"汽车",100,new BigDecimal(100)),
            new Goods(2L,"衣服",200,new BigDecimal(200)),
            new Goods(3L,"电脑",300,new BigDecimal(300)),
            new Goods(4L,"电视",400,new BigDecimal(400))
    );

    public static List<OrderItem> orderItems1=Lists.newArrayList(
            new OrderItem("汽车1",new BigDecimal(100),2),
            new OrderItem("衣服1",new BigDecimal(200),2),
            new OrderItem("电脑1",new BigDecimal(300),2),
            new OrderItem("电视1",new BigDecimal(400),2)
    );
    public static List<OrderItem> orderItems2=Lists.newArrayList(
            new OrderItem("汽车2",new BigDecimal(100),2),
            new OrderItem("衣服2",new BigDecimal(200),2),
            new OrderItem("电脑2",new BigDecimal(300),2),
            new OrderItem("电视2",new BigDecimal(400),2)
    );

    public static List<Order> orderList=Lists.newArrayList(
            new Order(1L,new BigDecimal(300.00),1,"",orderItems1),
            new Order(2L,new BigDecimal(600.00),3,"",orderItems2)
    );
}
